
VPATH=obj/:src/
CFLAGS= -D DEBUG
IWEBOTS="/home/jennifer/simulateurs/webots/include/controller/cpp/"
LWEBOTS= /home/jennifer/simulateurs/webots/lib/libController.so


cc = g++

ia:	main.o Reseau.o Robot.o NormalDistribution.o
	$(cc) obj/main.o obj/Reseau.o obj/Robot.o obj/NormalDistribution.o -o ia $(CFLAGS) -L"/home/jennifer/simulateurs/webots/lib/" -lController -lCppController

main.o: main.cpp Reseau.h Robot.h Outils.h NormalDistribution.h
	$(cc) -c src/main.cpp -I$(IWEBOTS) -o obj/main.o $(CFLAGS)

Reseau.o: Reseau.cpp Reseau.h Outils.h
	$(cc) -c src/Reseau.cpp -I$(IWEBOTS) -o obj/Reseau.o $(CFLAGS)

Robot.o: Robot.cpp Robot.h Reseau.h Outils.h NormalDistribution.h
	$(cc) -c src/Robot.cpp -I$(IWEBOTS)  -o obj/Robot.o $(CFLAGS)

NormalDistribution.o: NormalDistribution.cpp NormalDistribution.h
	$(cc) -c src/NormalDistribution.cpp -o obj/NormalDistribution.o $(CFLAGS)

clean:
	rm -f IA obj/*.o
